<cp-navbar (onClickLeft)="onClickLeft()"></cp-navbar>
<div class="loading" *ngIf="loading"><cp-loading></cp-loading></div>

<div class="container" *ngIf="!loading">
  <div class="header">
    <p>关于 <span class="name">{{projectName}}</span> 的{{question.length}}个问题</p>
  </div>
  <div class="list">
    <div class="item" *ngFor="let item of question" [queryParams]="{project: item.Id}" routerLink="/workspace/estate/questionDetail">
      <cp-estate-question [item]="item">
        <div class="timebox">
            <span *ngIf="item.Answer" class="num">查看{{item.Answer.Count}}个回答</span> 
            <span *ngIf="!item.Answer" class="num null">暂无回答</span> 

            <span class="time">更新于2018年03月12日</span>
        </div>
      </cp-estate-question>
    </div>

    <div *ngIf="question.length===0">
        <cp-empty></cp-empty>
    </div>
  </div>
  <div class="fill"></div>
  <!-- <div class="fixed-bottom">
    <button class="btn btn-block">
      <img src="assets/images/HouseDetails/icon_question_detail.png" /> <span>我要提问</span>
    </button>
  </div> -->
</div>
